package com.broada.apm.thrift.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.broada.apm.model.performance.BasePerformance;

public class PerformanceList implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Date timePoint;
	private boolean needThreshold = false;
	private List<? extends BasePerformance> performances;

	public PerformanceList(Date timePoint, List<? extends BasePerformance> performances) {
		this(timePoint, performances, false);
	}
	public PerformanceList(Date timePoint, List<? extends BasePerformance> performances, boolean needThreshold) {
	    this.performances = performances;
	    this.timePoint = timePoint;
	    this.needThreshold = needThreshold;
	}

	public List<? extends BasePerformance> getPerformances() {
		return performances;
	}
	
	public void setPerformances(List<? extends BasePerformance> performances) {
		this.performances = performances;
	}
	
	public Date getTimePoint() {
		return timePoint;
	}
	
    public void setTimePoint(Date timePoint) {
		this.timePoint = timePoint;
	}
	public void setNeedThreshold(boolean needThreshold) {
		this.needThreshold = needThreshold;
	}
	public boolean isNeedThreshold() {
        return needThreshold;
    }
	
}
